package com.hddz.acquisition.fragment.stock;

import java.util.List;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.hddz.acquisition.R;
import com.hddz.acquisition.fragment.BaseFragment;
import com.hddz.acquisition.model.ResponseItem;
import com.hddz.acquisition.view.Free1Adapter;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

@ContentView(R.layout.view_stock_grounding_color_list)
public class FragmentGroundingFree1 extends BaseFragment {

	 @ViewInject(R.id.list)
	 private ListView list;
	 Free1Adapter adapter=null;

	public static FragmentGroundingFree1 newInstance() {
		FragmentGroundingFree1 fragment = new FragmentGroundingFree1();
		return fragment;
	}


	@Override
	public void appandChild(View view) {
		adapter=new Free1Adapter(getActivity());
		list.setAdapter(adapter);
	}
	
	public void updateList(List<ResponseItem> items){
		adapter.updateList(items);
	}
}
